import { observable,action } from "mobx";

class RootStore {
  //共享
  @observable
    name="悟空";

  @action //行为 修改名称
  changeName(name){
    console.log(name);
    this.name=name;
  }
}

export default new RootStore();
